home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-01-21 | 1.7 KB | 62 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Appearance\Files&Folders\ANY file"
- "NAME"="Any File Context Menu Options #2"
- "VERSION"="2.11"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable "Copy to folder..." for any file"
- "TEXT 2"="Enable "Move to folder..." for any file"
- "DESCRIPTION 1"="This option will add 'Copy to' & 'Move to' to the Context Menu [right-click] of a file or folder."
- "AUTHOR"="Ojatex@aol.com"
- "CONTACTURL"="http://members.aol.com/ojatex/"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Thanks to Chris Pirillo [chris@lockergnome.com] for this great plug-in"
-
-
- sP="HKEY_CLASSES_ROOT\AllFileSystemObjects\shellex\ContextMenuHandlers\"
-
- sP1="HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To\@"
- sV1="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"
-
- sP2="HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To\@"
- sV2="{C2FBB631-2971-11D1-A18C-00C04FD75D13}"
-
-
-
- Sub Plugin_Initialize
- if RegPathExists(sP) then
- if RegReadValue(sP1)=sV1 then SetUIElement 1,true
- 'msginformation RegReadValue(sP1) & chr(13) & chr(10) & sV1
- if RegReadValue(sP2)=sV2 then SetUIElement 2,true
- 'msginformation RegReadValue(sP2) & chr(13) & chr(10) & sV2
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sP1,sV1,1)
- else
- Call RegWriteValue(sP1,"",1)
- end if
-
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sP2,sV2,1)
- else
- Call RegWriteValue(sP2,"",1)
- end if
-
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-